import App from "./App.vue";
import { createSSRApp  } from "vue";
import * as Pinia from "pinia";
// import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
const pinia = Pinia.createPinia();
import tabBar from './compoments/tabbar/tabbar.vue';
// pinia.use(piniaPluginPersistedstate);
export function createApp() {
  const app = createSSRApp(App);
  app.use(pinia);
  app.component('tabBar',tabBar)
  return {
    pinia,
    app,
  };
}
